import * as typegoose from '@midwayjs/typegoose';
import { DB_NAME } from '../constants';
const uri = `mongodb://172.17.0.1:27017/${DB_NAME}?replicaSet=rs.test`;
export const mongoose: typegoose.DefaultConfig = {
  uri,
  options: {
    useNewUrlParser: true,
    useUnifiedTopology: true,
    dbName: DB_NAME
  }
};

export const redis = {
  'host': 'session-store-redis-master.storage.svc.cluster.local',
  'port': 6379,
  'password': 'djol1DBp14',
  'db': 1
}
